$(function() {
	$(document).hotkeys("keydown", function(shortcut) {
		if(shortcut === null)
			return event;
		var strSelection = document.getSelection().toString();
		if(strSelection === "")
			return event;
		chrome.extension.sendRequest({
			"strSelection" : strSelection,
			"shortcut" : shortcut
		});
	});
});
